package org.example.springbook.model;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
public class PageRequest {
   private Integer currentPage=1;
   private Integer pageSize=10;
   private Integer offset;
   public Integer getOffset() {
       return (currentPage-1)*pageSize;
   }
}
